<%@ Page Language="C#" MasterPageFile="~/Labs.master" AutoEventWireup="true" 
    CodeBehind="gridviewextfunctionality.aspx.cs" 
    Inherits="SharpPieces.DemoApp.GridViewExtenderFunctionality" 
%>
    
<asp:Content ID="Content1" ContentPlaceHolderID="headPlaceHolder" runat="server">
    <title>SharpPieces - GridViewExtender Functionality - Live Demo</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="descriptionPlaceholder" runat="server">
    <h1>GridViewExtender Functionality</h1>
    <p>Upcoming control in SharpPieces toolbox.</p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="demoPlaceholder" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True" Text="ApplyFlexiGrid" />
    <div style="width:500px; height:300px;">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" 
            EnableViewState="False" AllowPaging="true" PageSize="10" OnPageIndexChanging="GridView1_PageIndexChanging">
            <Columns>
                <asp:BoundField DataField="LCID" HeaderText="LCID" />
                <asp:BoundField DataField="EnglishName" HeaderText="English Name" />
                <asp:BoundField DataField="NativeName" HeaderText="Native Name" />
                <asp:BoundField DataField="ThreeLetterISOLanguageName" HeaderText="Three Letter ISO Language Name" />
            </Columns>
        </asp:GridView>
        <piece:GridViewExtender ID="GridViewExtender1" runat="server" TargetControlID="GridView1"
            Visible='<%#this.CheckBox1.Checked%>'>
            <FlexiGrid Enabled="True" />
        </piece:GridViewExtender>
    </div>
</asp:Content>
